﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class UserControl_PrintTempleteForOrderReport : System.Web.UI.UserControl
{
    //单价 发货数量 收获数量 收获时间 是否留空
    public bool IsShowWritedData = false;
    private bool PrintButtonUnMade = true;
    public string OrgName
    {
        set { this.lblORGNAME.Text = value; }
    }
    public string ChainName
    {
        set { this.lblChainName.Text = value; }
    }
    public string SupplyName
    {
        set { this.lblDelieveryCompany.Text = value; }
    }
    public string UserNameAndTel
    {
        set { this.lblUserAndContact.Text = value; }
    }
    public string OrderDate
    {
        set { this.lblOrderDate.Text = value; }
    }
    public GridView GridViewTable
    {
        get { return this.gvChannelType; }
    }
    public string PagerText
    {
        set { this.lblPager.Text = value; }
    }
    public string DateTime
    {
        set { this.lblDateTime.Text = value; }
    }
    /// <summary>
    /// 这个编号需要唯一值否则打印按钮无法找到所要打印的内容
    /// </summary>
    /// <param name="printGUID"></param>
    public void MadePrinter(string printGUID)
    {
        if (PrintButtonUnMade)
        {
            lblHeader.Text = @"<div id='pt" + printGUID + "'>";
            lblBottom.Text = @"</div>";
            lblPrintBtn.Text = @" <input id='btn" + printGUID + "' type='button' class='wsd_button2' value='打  印' onclick=\"printPage('pt" + printGUID + "');\"/>";
            PrintButtonUnMade = false;

        }
    }


}
